package com.liu.mybatisText;

import com.liu.mapper.StudentMapper;
import com.liu.model.Student;
import com.liu.utils.mybatisUstils;
import org.apache.ibatis.session.SqlSession;

public class mybatisText {
    public static void main(String[] args) {
        SqlSession session = new mybatisUstils().getSession();
        StudentMapper mapper = session.getMapper(StudentMapper.class);
        for (Student student : mapper.selectStudent()) {
            System.out.println(student);
        }
        session.close();
    }
}
